package com.cares.business.procedure.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.cares.business.procedure.dao.ProcedureDao;
import com.cares.business.procedure.service.ProcedureService;

@Service("procedureService")
public class ProcedureServiceImpl implements ProcedureService {
	
	
	@Autowired
	private ProcedureDao procedureDao;

	/**
	 * 测试无返回值存储过程
	 */
	public void doCallProcedure(String[] flowParams, String procedureName, Object... inParams) {
		procedureDao.testProcedure(flowParams, procedureName, inParams);
	}
	
	/**
	 * 测试有返回值存储过程
	 */
	public Object doCallProceReturnValue(String[] flowParams, String procedureName, Object[] inParams, String... outParams) {
		return procedureDao.callProceReturnValue(flowParams, procedureName, inParams, outParams);
	}
}
